import request from '@/utils/request'

export function listIncomeRent(query) {
  return request({
    url: '/incomeRentRecordRecord/list',
    method: 'get',
    params: query
  })
}

export function createIncomeRent(data) {
  debugger
  return request({
    url: '/incomeRentRecordRecord/create',
    method: 'post',
    data
  })
}

export function updateIncomeRent(data) {
  return request({
    url: '/incomeRentRecordRecord/update',
    method: 'post',
    data
  })
}

export function deleteIncomeRent(data) {
  return request({
    url: '/incomeRentRecordRecord/delete',
    method: 'post',
    data
  })
}

export function createByTenantId(data) {
  return request({
    url: '/incomeRentRecordRecord/createByTenantId',
    method: 'post',
    data
  })
}

export function archiveIncomeRent(data) {
  return request({
    url: '/incomeRentRecordRecord/archiveIncomeRent',
    method: 'post',
    data
  })
}

export function tatolIncomeRent(query) {
  return request({
    url: '/incomeRentRecordRecord/tatolIncomeRent',
    method: 'get',
    params: query
  })
}
